const defaultState = {
    singers:[
        {id:1,name:'王力宏'},
        {id:2,name:'周笔畅'}
    ]
}
export const reducer = (state=defaultState,action) => {
    switch(action.type){
        case 'CHANGE_SINGERLIST':
            return {
                ...state,
                singers:action.data
            }
            break;
    }
    return state;
}

export default reducer;